/**
 * Created by li on 2016/11/1.
 */
//require(['js/global'],function(){
//
//});




//(L|F)|(Z||N)|T|O|I,O
//var a = new FourGrid('Z');

//20*10数组
var mapArr = [];
for(var i=0;i<20;i++){
    mapArr[i] = [];
    for(var j=0;j<10;j++){
        mapArr[i][j] = 0;
        mapArr[0][j] = 1;

    }
}



(function (){


    // mapArr[1][2]=1;
    //console.log(mapArr);
    var map = new Map(mapArr);
    var four = new FourGrid('O',3,1);

    //var four = new FourGrid(global.getRandowType(),global.getRandowX(),global.getRandowX(),global.getRandowDirection());

    var cc = new Controller(map,four);

    // global.isFalling = true;

    map.addFourGrid(four)

    // map.nextSecond(four)
    map.nextSecond(four)

    //console.log(four.getRandowType());
    //console.log(four.getRandowDirection());
    // var a = map.addFourGrid(four);

    // var b = map.nextSecond(a);

    // var c = map.nextSecond(b);
    // d  =map.nextSecond(c);




})();




